package com.luoyi;

import com.luoyi.behavior.FlyBehavior;

public class AbstractDuck {

    protected FlyBehavior flyBehavior;

    public void setFlyBehavior(FlyBehavior flyBehavior) {
        this.flyBehavior = flyBehavior;
    }

    protected void fly(){
        flyBehavior.flyWay();
    }

    protected void display(){
        System.out.println(" ");
    }

    protected void quark(){
        System.out.println(" ");
    }

}
